<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonEdit.jsp"%>
<%@ include file="/commons/tabs.jsp"%>
<%@ include file="/commons/validation.jsp"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>审批 主页面</title>
<link href="${ctx}/css/grid.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx}/scripts/div/common.js"></script>
<script type="text/javascript" src="${ctx}/scripts/public.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common/prototype.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common.js"></script>

<script type="text/javascript">

	function displaySubmit(type){

		if (type == "1"){
			$('submitDiv').style.display="block";

		}else{
			$('submitDiv').style.display="none";
		}
	}

	function disabledSubmit(status){
		$("btn1_22").disabled = !status;
		$("btn1_32").disabled = !status;
	}

	function refleshClose(){
		findFrame('main').reflesh(); //刷新主页面列表
		windowClose();
	}

	function submitWin(){
		frames['countDeposidtMainFrm'].submitApproval();
	}

</script>
</head>


<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0"  >
  <tr>
    <td colspan="2" class="window_head_outBg"><table border="0" cellpadding="0" cellspacing="0">
      <tr><td><img src="${ctx}/images/ico_Advance.gif" width="16" height="16" align="absmiddle"> <span class="window_head_intext">保证金补退审批</span></td></tr>
    </table></td>
  </tr>
  <tr><td colspan="2" class="aux_header_line_1"></td></tr>
  <tr><td colspan="2" class="aux_header_line_2"></td></tr>
  <tr>
    <td colspan="2" class="content">
    <div >
			<pms:tabPanel  panelId="countDeposidtMain" iframeId="countDeposidtMainFrm" hasTop="false" defaultHeight="200px">

					 <pms:tab caption="基本信息"
					    baseUrl="${ctx}/renovation_depositAccountingAction.do?method=navigateRenovationInfo&inspectionRequisitionId=${inspectionRequisitionId}"
					    tabId="renovationInfo"
					    beforeFunction="displaySubmit('0');"
					    />
					 <pms:tab caption="违规情况"
					    baseUrl="${ctx}/renovation_depositAccountingAction.do?method=navigateReinspectionList&licenceId=${licenceId}"
					    tabId="reinspection"
					    beforeFunction="displaySubmit('0');"
					    />
					   <pms:tab caption="复验结果"
					    baseUrl="${ctx}/renovation_depositAccountingAction.do?method=navigateViolationList&inspectionRequisitionId=${inspectionRequisitionId}"
					    tabId="violationList"
					     beforeFunction="displaySubmit('0');"
					     />
					   <pms:tab caption="装修收费"
					    baseUrl="${ctx}/renovation_depositAccountingAction.do?method=navigateRenovationChangeList&licenceId=${licenceId}"
					    tabId="renovationChangeList"
					    beforeFunction="displaySubmit('0');"
					    />
					   <pms:tab caption="退还核算"
					    baseUrl="${ctx}/renovation_depositAccountingAction.do?method=navigateCountDepositDetail&licenceId=${licenceId}"
					    tabId="countDepositDetail"
					     beforeFunction="displaySubmit('0');"
					     />
					   <pms:tab caption="审批结果"
					    baseUrl="${ctx}/renovation_depositAccountingAction.do?method=navigateRenovateApproval&depositAccountingId=${depositAccountingId}"
					    tabId="renovateApproval"
					    defaultTab="true"
					    beforeFunction="displaySubmit('1');"
					    />
			</pms:tabPanel>

    </div>
    </td>
  </tr>
  <tr>
    <td class="window_footer"><table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>&nbsp;</td>
        <td class="btn_between_space"></td>
        <td>

		<div id="submitDiv">
        <table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="buttonOffLeft" id="btn1_21"></td>
              <td class="buttonOffMiddle" id="btn1_22" onClick="submitWin();" onMouseOver="btn_change_over(2)" onMouseOut="btn_change_out(2)" onBlur="btn_change(2)"><img src="${ctx}/images/ico_ok.gif" alt="" width="14" height="14" border="0" align="absbottom"> 保 存</td>
              <td class="buttonOffRight" id="btn1_23"></td>
            </tr>
        </table>
		</div>

        </td>
        <td class="btn_between_space"></td>
        <td><table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="buttonOffLeft" id="btn1_31"></td>
              <td class="buttonOffMiddle" id="btn1_32" onClick="windowClose();" onMouseOver="btn_change_over(3)" onMouseOut="btn_change_out(3)" onblur="btn_change(3)"><img src="${ctx}/images/ico_cancel.gif" alt="" width="14" height="14" border="0" align="absbottom"> 关 闭</td>
              <td class="buttonOffRight" id="btn1_33"></td>
            </tr>
        </table></td>
      </tr>
    </table>
    <p>&nbsp;</p></td>
  </tr>
</table>
</body>
</html>